package com.malty.aiassistant.advisor;

import lombok.extern.slf4j.XSlf4j;
import org.springframework.ai.chat.client.advisor.api.*;
import org.springframework.core.annotation.Order;
import reactor.core.publisher.Flux;

/**
 * 计划用于实现用户鉴权等请求拦截
 * @author malty
 */
@Order
@XSlf4j
public class AuthenticationAdvisor implements CallAroundAdvisor, StreamAroundAdvisor {
    @Override
    public AdvisedResponse aroundCall(AdvisedRequest advisedRequest, CallAroundAdvisorChain chain) {
        return null;
    }

    @Override
    public Flux<AdvisedResponse> aroundStream(AdvisedRequest advisedRequest, StreamAroundAdvisorChain chain) {
        return null;
    }

    @Override
    public String getName() {
        return this.getClass().getName();
    }

    @Override
    public int getOrder() {
        return 0;
    }
}
